<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" lang="en" th:with="unixstamp=${#dates.createNow().time}">
<head th:replace="common::header"></head>
<style type="text/css">
.layui-table-view .layui-form-radio>i{
    margin : 12px;
}
</style>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-header t-title layui-bg-cyan mlk-title">活动管理</div>
					<div class="layui-card-body">
						<table class="layui-table" id="table" lay-filter="table" style="height:100%;"></table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>

<!-- 修改 -->
<div id="edit" class="mlk-hide">
    <div class="layui-fluid">
        <form class="layui-form layui-form-pane" lay-filter="editForm">
            <input name="id"  type="hidden">
            <div class="layui-form-item">
                <label class="layui-form-label">活动名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" required  lay-verify="required" placeholder="请输入活动名称" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">内容</label>
                <div class="layui-input-block">
                    <textarea name="content" placeholder="请输入内容" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="submit">立即提交</button>
            </div>
        </form>
    </div>
</div>

<script type="text/html" id="toolbar">
</script>

<script type="text/html" id="tool">
    <button class="layui-btn layui-btn-sm layui-btn-warm " lay-event="edit">修改</button>
</script>
<div th:include="common::footer"></div>
<script type="text/javascript" th:src="@{/js/engActivity/activity.js}"></script>
</html>